<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>修改学生</title>
    <style>
        .container {
            width: 600px;
            margin: auto;
        }

        .container > h1 {
            text-align: center;
        }


    </style>
</head>
<body>
<div class="container">
    <h1>修改学生页面</h1>
    <form th:action="@{/student/edit}" method="POST">
        <input type="hidden" name="id" th:value="${student.id}">
        <p>
            <label for="name">学生姓名：</label>
            <input type="text" name="name" id="name" placeholder="请输入学生姓名" th:value="${student.name}">
        </p>
        <p>
            <label>学生性别：</label>
            <input type="radio" name="gender" value="1" th:checked="${student.gender == '1'}"> 男
            <input type="radio" name="gender" value="0" th:checked="${student.gender == '0'}"> 女
        </p>
        <p>
            <label for="major">院系/专业：</label>
            <input type="text" name="major" id="major" placeholder="请输入院系/专业" th:value="${student.major}">
        </p>
        <p>
            <button type="submit">确定修改</button>
            <button type="reset">重置</button>
        </p>
    </form>
</div>
</body>
</html>